const Router = require('koa-router');

const authRouter = new Router();

const {
    login,
    success
} = require('../controller/auth.controller');

const { 
    verifyUser, 
    verifyAuth
} = require('../middleware/auth.middleware');


authRouter.post('/login', verifyUser, login);     //登录接口

authRouter.get('/demo', verifyAuth, success);     //模拟验证接口

module.exports = authRouter;